class SubsArticleListEntity {
  ArticleDetail? daily;
  List<ArticleDetail>? rows;
  ArticleDetail? sum;
  int? total;

  SubsArticleListEntity({this.daily, this.rows, this.sum, this.total});

  SubsArticleListEntity.fromJson(Map<String, dynamic> json) {
    daily = json['daily'] != null ? new ArticleDetail.fromJson(json['daily']) : null;
    if (json['rows'] != null) {
      rows = <ArticleDetail>[];
      json['rows'].forEach((v) {
        rows!.add(new ArticleDetail.fromJson(v));
      });
    }
    sum = json['sum'] != null ? new ArticleDetail.fromJson(json['sum']) : null;
    total = json['total'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.daily != null) {
      data['daily'] = this.daily!.toJson();
    }
    if (this.rows != null) {
      data['rows'] = this.rows!.map((v) => v.toJson()).toList();
    }
    if (this.sum != null) {
      data['sum'] = this.sum!.toJson();
    }
    data['total'] = this.total;
    return data;
  }
}

class ArticleDetail {
  String? endTime;
  String? expertId;
  int? id;
  String? img;
  int? imgType;
  String? publishTime;
  String? summary;
  String? title;
  String? uv;

  ArticleDetail(
      {this.endTime,
        this.expertId,
        this.id,
        this.img,
        this.imgType,
        this.publishTime,
        this.summary,
        this.title,
        this.uv});

  ArticleDetail.fromJson(Map<String, dynamic> json) {
    endTime = json['endTime'];
    expertId = json['expertId'];
    id = json['id'];
    img = json['img'];
    imgType = json['imgType'];
    publishTime = json['publishTime'];
    summary = json['summary'];
    title = json['title'];
    uv = json['uv'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['endTime'] = this.endTime;
    data['expertId'] = this.expertId;
    data['id'] = this.id;
    data['img'] = this.img;
    data['imgType'] = this.imgType;
    data['publishTime'] = this.publishTime;
    data['summary'] = this.summary;
    data['title'] = this.title;
    data['uv'] = this.uv;
    return data;
  }
}